<template>
  <div>
    <div>组件注册 在 `setup(props, content) {...}` 情形下</div>
    <hr>
    <comp-vue />
    <Comp-vue2 />
  </div>
</template>

<script>
import CompVue from './Comp1.vue'
import CompVue2 from './Comp2.vue'

export default {
  components: { CompVue, CompVue2 }, // 和 `Vue2` && `html+js形式` 一样
  setup(props, content) {
    console.log('props=', props, 'content=', content)
  }
}

</script>